function loadmore(id,url,type,dataurl,search,sort) {
    layui.use('flow', function(){
        var flow = layui.flow;
        flow.load({
            elem: '#'+id, //流加载容器
            scrollElem:'#'+id
            ,done: function(page, next){
                setTimeout(function(){
                    var data;
                    if (search){
                        data={p:page,search:search};
                    }
                    else if(sort){
                        data={p:page,sort:sort};
                    }
                    else {
                        data = {p:page,type:type};
                    }
                    var lis = [];
                    $.ajax({
                        type: "GET",
                        url: url,
                        data: data,
                        dataType: "json",
                        success: function(data){

                            for(var i = 0; i < data.data_list.length; i++){
                                if (type==2){
                                    lis.push('<a href="'+dataurl+'/id/'+data.data_list[i].id+'.html" class="aui-col-xs-6 aui-row"><img class="resize" src="'+data.data_list[i].img+'"/><div class="column"><div  class="title">'+data.data_list[i].title+'</div><h3>价值：￥'+data.data_list[i].money+'</h3><p>地址:<img src="/Public/img/dingwei.png" style="width: 15px;display: inline;" />'+data.data_list[i].address+'</p></div></a>');
                                }else{
                                    lis.push('<a href="'+dataurl+'/id/'+data.data_list[i].id+'.html" class="aui-col-xs-6 aui-row"><img class="resize" src="'+data.data_list[i].img+'"/><div class="column"><div  class="title">'+data.data_list[i].title+'</div><h3>价值：￥'+data.data_list[i].money+'</h3><p>需求:'+data.data_list[i].daihuan+'</p><p>地址:<img src="/Public/img/dingwei.png" style="width: 15px;display: inline;" />'+data.data_list[i].address+'</p></div></a>');
                                }
                            }
                            next(lis.join(''), page < data.page);
                            $(".resize").height($('.resize').width());
                        }
                    });
                }, 500);
            }
        });
    });
}
